<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<?php echo form_tag_for($form, '@application') ?>
  <?php echo $form->renderGlobalErrors() ?>
  <?php echo $form['area_id']->renderError() ?>
  <?php echo $form['name']->renderError() ?>
  <?php echo $form['name_en']->renderError() ?>
  <?php echo $form['age']->renderError() ?>
  <?php echo $form['minzu']->renderError() ?>
  <?php echo $form['height']->renderError() ?>
  <?php echo $form['weight']->renderError() ?>
  <?php echo $form['bwh']->renderError() ?>
  <?php echo $form['occupation']->renderError() ?>
  <?php echo $form['education']->renderError() ?>
  <?php echo $form['college']->renderError() ?>
  <?php echo $form['address']->renderError() ?>
  <?php echo $form['id_card']->renderError() ?>
  <?php echo $form['phone']->renderError() ?>
  <?php echo $form['qq']->renderError() ?>
  <?php echo $form['native_place']->renderError() ?>
  <?php echo $form['contact']->renderError() ?>
  <?php echo $form['relation']->renderError() ?>
  <?php echo $form['contact_phone']->renderError() ?>
  <?php echo $form['introduction']->renderError() ?>
  <?php echo $form['hobby']->renderError() ?>
  <?php echo $form['watchword']->renderError() ?>
  <?php echo $form['picture']->renderError() ?>
  <?php echo $form['email']->renderError() ?>
  <?php echo $form['password']->renderError() ?>
  <?php echo $form['website']->renderError() ?>
  <?php echo $form['picturelife']->renderError() ?>
  <table class="form" cellspacing="0">
    <colgroup>
      <col span="1" width="80" />
      <col span="1" width="170" />
      <col span="1" width="80" />
      <col span="1" width="170" />
    </colgroup>
    <tbody>
      <tr>
        <td colspan="4" class="tips">
          注：请真实填写以下资料，带 <span class="required">*</span> 号为必填项。
        </td>
      </tr>
	 <tr>
        <td><h2>选择赛区</h2></td>
      </tr>
	  <tr>
        <th><span class="required">*</span> <?php echo $form['area_id']->renderLabel('请选择赛区：') ?></th>
        <td><?php echo $form['area_id']->render(array('class' => 'text-input')) ?></td>
      </tr>
	  <tr>
        <td><h2>基本资料</h2></td>
      </tr>
      <tr>
        <th><span class="required">*</span> <?php echo $form['name']->renderLabel('姓名：') ?></th>
        <td><?php echo $form['name']->render(array('class' => 'text-input')) ?></td>
        <td class="text-right"><?php echo $form['name_en']->renderLabel('英文名：') ?></td>
        <td><?php echo $form['name_en']->render(array('class' => 'text-input')) ?></td>
      </tr>
      <tr>
        <th><span class="required">*</span> <?php echo $form['age']->renderLabel('年龄：') ?></th>
        <td><?php echo $form['age']->render(array('class' => 'text-input')) ?></td>
        <td class="text-right"><span class="required">*</span> <?php echo $form['minzu']->renderLabel('民族：') ?></td>
        <td><?php echo $form['minzu']->render(array('class' => 'text-input')) ?></td>
      </tr>
      <tr>
        <th><span class="required">*</span> <?php echo $form['height']->renderLabel('身高：') ?></th>
        <td><?php echo $form['height']->render(array('class' => 'num-input')) ?> CM</td>
        <td class="text-right"><span class="required">*</span> <?php echo $form['weight']->renderLabel('体重：') ?></td>
        <td><?php echo $form['weight']->render(array('class' => 'num-input')) ?> KG</td>
      </tr>
      <tr>
        <th><span class="required">*</span> <?php echo $form['bwh']->renderLabel('三围：') ?></th>
        <td><?php echo $form['bwh']->render(array('class' => 'text-input')) ?></td>
        <td class="text-right"><span class="required">*</span> <?php echo $form['occupation']->renderLabel('职业：') ?></td>
        <td><?php echo $form['occupation']->render(array('class' => 'text-input')) ?></td>
      </tr>
      <tr>
        <th><?php echo $form['education']->renderLabel('学历：') ?></th>
        <td><?php echo $form['education']->render(array('class' => 'text-input')) ?></td>
        <td class="text-right"><?php echo $form['college']->renderLabel('毕业院校：') ?></td>
        <td><?php echo $form['college']->render(array('class' => 'text-input')) ?></td>
      </tr>
      <tr>
        <th><span class="required">*</span> <?php echo $form['address']->renderLabel('现居住地：') ?></th>
        <td><?php echo $form['address']->render(array('class' => 'text-input')) ?></td>
        
      </tr>


	  <tr>
        <td><h2>账号和密码</h2></td>
      </tr>
	  <tr>
        <th><span class="required">*</span> <?php echo $form['email']->renderLabel('E-mail：') ?></th>
        <td><?php echo $form['email']->render(array('class' => 'text-input')) ?></td>
		<td>用来登录选手中心，建议使用常用的E-mail</td>
      </tr>
	  <tr>
        <th><span class="required">*</span> <?php echo $form['password']->renderLabel('设置密码：') ?></th>
        <td><?php echo $form['password']->render(array('class' => 'text-input')) ?></td>
		<td>最少6位字符，英文字母、符号或数字</td>
      </tr>
	  <tr>
        <th><span class="required">*</span> <?php echo $form['password2']->renderLabel('设置密码：') ?></th>
        <td><?php echo $form['password2']->render(array('class' => 'text-input')) ?></td>
		<td>将设置密码再次输入一遍</td>
      </tr>
	  <tr>
        <th><span class="required">*</span> <?php echo $form['id_card']->renderLabel('身份证号：') ?></th>
        <td><?php echo $form['id_card']->render(array('class' => 'text-input')) ?></td>
      </tr>
	  <tr>
        <td><h2>联系方式</h2></td>
      </tr>
      <tr>
        <th><span class="required">*</span> <?php echo $form['phone']->renderLabel('联系电话：') ?></th>
        <td><?php echo $form['phone']->render(array('class' => 'text-input')) ?></td>
        <th><?php echo $form['qq']->renderLabel('QQ号码：') ?></th>
        <td><?php echo $form['qq']->render(array('class' => 'text-input')) ?></td>
      </tr>
      <tr>
        <th><span class="required">*</span> <?php echo $form['native_place']->renderLabel('籍贯：') ?></th>
        <td><?php echo $form['native_place']->render(array('class' => 'text-input')) ?></td>
        <th><span class="required">*</span> <?php echo $form['contact']->renderLabel('紧急联系人：') ?></th>
        <td><?php echo $form['contact']->render(array('class' => 'text-input')) ?></td>
      </tr>
      <tr>
        <th><span class="required">*</span> <?php echo $form['relation']->renderLabel('与您的关系：') ?></th>
        <td><?php echo $form['relation']->render(array('class' => 'text-input')) ?></td>
        <th><span class="required">*</span> <?php echo $form['contact_phone']->renderLabel('其联系电话：') ?></th>
        <td><?php echo $form['contact_phone']->render(array('class' => 'text-input')) ?></td>
      </tr>
	  <tr>
        <th><span class="required">*</span> <?php echo $form['website']->renderLabel('个人网站：') ?></th>
        <td><?php echo $form['website']->render(array('class' => 'text-input')) ?></td>
      </tr>
	  <tr>
        <td><h2>其他</h2></td>
      </tr>
      <tr>
        <th><span class="required">*</span> <?php echo $form['introduction']->renderLabel('个人介绍：') ?></th>
        <td colspan="3">
          请填写参加过的选美活动或参与过的广告拍摄，限字数200字以内
          <?php echo $form['introduction']->render(array('class' => 'text-textarea', 'cols' => 45, 'rows' => '5')) ?>
        </td>
      </tr>
      <tr>
        <th><span class="required">*</span> <?php echo $form['hobby']->renderLabel('才艺爱好：') ?></th>
        <td colspan="3">
          限字数200字以内
          <?php echo $form['hobby']->render(array('class' => 'text-textarea', 'cols' => 45, 'rows' => 5)) ?>
        </td>
      </tr>
      <tr>
        <th><span class="required">*</span> <?php echo $form['watchword']->renderLabel('美丽宣言：') ?></th>
        <td colspan="3">
          将作为您的个人说明出现在参赛佳丽页面，限字数50字以内
          <?php echo $form['watchword']->render(array('class' => 'text-textarea', 'cols' => 45, 'rows' => 5)) ?>
        </td>
      </tr>
	  <tr>
        <td><h2>上传照片</h2></td>
      </tr>
      <tr>
        <th><span class="required">*</span> <?php echo $form['picture']->renderLabel('选择照片：') ?></th>
        <td colspan="3">
          <?php echo $form['picture'] ?>请上传一张近期艺术照片，照片大小在2M以内。
        </td>
      </tr>
	  <tr>
        <th><span class="required">*</span> <?php echo $form['picturelife']->renderLabel('选择照片：') ?></th>
        <td colspan="3">
          <?php echo $form['picturelife'] ?>请上传一张近期生活照片，照片大小在2M以内。
        </td>
      </tr>
      <tr>
        <th><?php echo $form->renderHiddenFields() ?></th>
        <td colspan="2"><input type="submit" name="button" id="button" value="提交" /></td>
      </tr>
    </tbody>
  </table>
</form>
